//import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
//
//public class text1 {
//    public static void main(String[] args) {
//AA a=new AA();
////boolean p=a.f1(3);
////        System.out.println(p);
//BB b=new BB();
//b.name="xiaoming";
//b.num=18;
//        System.out.println(b.name);
//        System.out.println(b.num);
//        a.mun(b);
//        System.out.println(b.num);
//    }
//}
//class BB{
//    int num;
//    String name;
//}
//class AA{
//    public void mun(BB arr){
//       arr.num=1000;
//    }
////    public boolean f1(int n){
//////        return n%2!=0? true:false;
////        return n % 2 != 0;
////    }
//}
public class text1 {
    public static void main(String[] args) {
person my=new person();
my.name="张三";
my.age=10;
        System.out.println(my.name+my.age);
        mycopy f1=new mycopy();
        person f2=f1.copy(my);
        System.out.println(f2.name+f2.age);

        System.out.println(my);
        System.out.println(f2);
    }
}
class person{
    int age;
    String name;
}
class mycopy{
    public person copy(person p){
 person p2=new person();
 p2.name=p.name;
 p2.age=p.age;
 return p2;
    }
}
//public class text1 {
//    public static void main(String[] args) {
////cjc c1=new cjc();
////int m=c1.fjc(3);
////        System.out.println(m);
////        cfb f1=new cfb();
////        int m=f1.ffb(8);
////        System.out.println(m);
//        chz h1=new chz();
//      int t=  h1.fhz(1);
//        System.out.println(t);
//    }
//}
//class cjc{
//    public int fjc(int n){
//
//        if(n>1)
//        return n*fjc(n-1);
//        else return 1;
//    }
//}
//class cfb{
//    public int ffb(int n){
//        if(n==1||n==2){
//            return 1;
//        }
//        return ffb(n-1)+ffb(n-2);
//    }
//}
////10:1
////9:day(10+1)*2==day9
////8:day7/2-1=day8
////2:day6/2-1=day
//
//class chz{
//    public int fhz(int day){
//        if(day==10){
//            return 1;
//        }
//return  (fhz(day+1)+1)*2;
//    }
//}